package com.gz.mylife.app;

import com.gz.mylife.Define;
import com.tencent.connect.auth.QQAuth;

import android.content.Context;

public class Global {

	private static final String TAG = Global.class.getSimpleName();
	
	private static Global mInstance;
	private Context mContext;
	private QQAuth mQQAuth;
	
	public static void init(Context context) {
		mInstance = new Global();
		mInstance.mContext = context;
		mInstance.mQQAuth = QQAuth.createInstance(Define.APP_ID_QQ, context);
	}
	
	private Global() {
		
	}
	
	
	public static Global getInstance() {
		return mInstance;
	}
	
	public QQAuth getQQAuth() {
		return mQQAuth;
	}
	
	public void rebuild() {
		mQQAuth = QQAuth.createInstance(Define.APP_ID_QQ, mContext);
	}
}
